package com.anyou.mall.fin.mapper;

import java.util.List;
import com.anyou.mall.fin.domain.StoreReconciliation;
import com.anyou.mall.fin.vo.StoreReconciliationVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 商家对账Mapper接口
 *
 * @author gaochaohao
 * @date 2022-04-25
 */
public interface StoreReconciliationMapper extends BaseMapper<StoreReconciliation>
{
    /**
     * 查询商家对账
     *
     * @param storeReconciliationId 商家对账主键
     * @return 商家对账
     */
    public StoreReconciliationVo selectStoreReconciliationByStoreReconciliationId(Long storeReconciliationId);

    /**
     * 查询商家对账列表
     *
     * @param storeReconciliation 商家对账
     * @return 商家对账集合
     */
    public List<StoreReconciliationVo> selectStoreReconciliationList(StoreReconciliation storeReconciliation);

    /**
     * 新增商家对账
     *
     * @param storeReconciliation 商家对账
     * @return 结果
     */
    public int insertStoreReconciliation(StoreReconciliation storeReconciliation);

    /**
     * 修改商家对账
     *
     * @param storeReconciliation 商家对账
     * @return 结果
     */
    public int updateStoreReconciliation(StoreReconciliation storeReconciliation);

    /**
     * 删除商家对账
     *
     * @param storeReconciliationId 商家对账主键
     * @return 结果
     */
    public int deleteStoreReconciliationByStoreReconciliationId(Long storeReconciliationId);

    /**
     * 批量删除商家对账
     *
     * @param storeReconciliationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStoreReconciliationByStoreReconciliationIds(Long[] storeReconciliationIds);

    /**
     * 我的收入
     * @param carPartsShopId
     * @return
     */
    StoreReconciliationVo selectStoreReconciliationByCarPartsShopId(Long carPartsShopId);
}
